-- GENERATED SPELL FOR [Summoned Blackhand Veteran] --


function spell0_10681(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10681', 8252, 1)
end

function spell1_10681(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(15749,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10681', 551, 1)
end

function spell2_10681(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10681', 610, 1)
end

function Sorts_10681(pUnit, Event)
local choix_sorts_10681 = math.random(0, 2)
if choix_sorts_10681 == 0 then
pUnit:RegisterEvent('spell0_10681', 1, 1)
end
if choix_sorts_10681 == 1 then
pUnit:RegisterEvent('spell1_10681', 1, 1)
end
if choix_sorts_10681 == 2 then
pUnit:RegisterEvent('spell2_10681', 1, 1)
end
end

function mob10681_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10681', math.random(1500, 3000), 1)
end

function mob10681_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10681_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10681_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10681, 1, 'mob10681_Action')
RegisterUnitEvent(10681, 2, 'mob10681_Leave')
RegisterUnitEvent(10681, 3, 'mob10681_Kill')
RegisterUnitEvent(10681, 4, 'mob10681_Die')
